package com.yang.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.staff.pojo.Staff;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface StaffMapper extends BaseMapper<Staff> {

    @Options(useGeneratedKeys = true, keyProperty = "id")
    @Insert("insert into cr_staff (name,did,user_name,pwd) values (#{name},#{did},#{user_name},#{pwd})")
    void register(Staff staff);
}
